home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / mlib / include / mtree.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-02  |  726 b   |  22 lines

  1.  
  2. #ifndef __MTREE_H
  3. #define __MTREE_H
  4.  
  5. class MTree : public MObject {
  6. protected:
  7.     MTree *                  Parent;
  8.     LList                    Children;
  9. public:
  10.                  MTree (MTree * AParent = NULL, WORD TheMaxChildren = MAXWORD);
  11.     virtual void             AddChild (MTree * AChild);
  12.     virtual MTree *          RemoveChild (MTree * AChild);
  13.     virtual void             DeleteChild (MTree * AChild);
  14.     virtual MTree *          Find (CondFuncType IsThat, void * param);
  15.     virtual void             ForEach (IterFuncType, void * );
  16.     virtual MTree *          FirstThat (CondFuncType, void * );
  17.     virtual MTree *          LastThat (CondFuncType, void * );
  18.                 ~MTree (void) {};
  19. };
  20.  
  21. #endif
  22.